Effective Testing with RSpec 3: Build Ruby Apps with Confidence

Effective Testing with RSpec 3: Build Ruby Apps with Confidence

作者: Myron Marston Ian Dees
出版社: Pragmatic Bookshelf
出版在: 2017-09-19
ISBN-13: 9781680501988
ISBN-10: 1680501984
裝訂格式: Paperback
總頁數: 356 頁





內容描述


Build and maintain quality software with RSpec, the popular BDD-flavored Ruby testing framework. This definitive guide from RSpec's lead developer shows you how to use RSpec to drive more maintainable designs, specify and document expected behavior, and prevent regressions during refactoring. Build a project using RSpec to design, describe, and test the behavior of your code-whether you're new to testing tools or an experienced developer.RSpec has been downloaded more than 40 million times. Find out how to use this influential Ruby testing framework to iteratively develop a project with the confidence that comes from well-tested code. Effective Testing With RSpec 3 guides you through developing a Ruby project with RSpec, and then explores the individual components in more detail.First, learn the basics of installing and using RSpec. Then, build a real-world JSON API, using RSpec throughout the process to drive a BDD-style outside-in workflow. Apply an effective test strategy to write fast, robust tests that support evolutionary design through refactoring. The rest of the book provides the definitive guide to RSpec's components. Use RSpec::Core's metadata to slice and dice your spec suite in flexible ways. Dig into RSpec::Expectation's matchers, which can be composed in flexible ways to precisely specify expected outcomes and get good failure messages that help you quickly diagnose the problem. Write fast, isolated tests with RSpec::Mocks test doubles while pushing your code toward simpler interfaces.The authors, with a combined 20 years of automated testing experience, share useful, actionable testing advice that will help you have a fun, productive testing experience.What You Need:To follow along with the book, you'll need Ruby 2.1+. The book will guide you through installing RSpec 3 and setting up a new project to use it.




相關書籍

Beginning Database Programming Using ASP.NET Core 3

作者 Joshi Bipin

2017-09-19

網頁設計丙級檢定術科解題教本|109年啟用試題 (適用Adobe CC)

作者 林文恭.葉冠君

2017-09-19

Vue.js 前端開發技術

作者 王鳳麗豆連軍編

2017-09-19